import Home from '@/views/oj/Home.vue'
import Logout from "@/views/oj/user/Logout.vue"
import NotFound from "@/views/404.vue"
import SetNewPassword from "@/views/oj/user/SetNewPassword.vue"

const ojRoutes = [
    {
        path: '/',
        redirect: '/home',
        component: Home,
        meta: {title: 'Home'}
    },
    {
        path: '/home',
        name: 'Home',
        component: Home,
        meta: {title: 'Home'}
    },
    {
        name: 'Logout',
        path: '/logout',
        component: Logout,
        meta: {requireAuth: true, title: 'Logout'}
    },
    {
        path: '/reset-password',
        name: 'SetNewPassword',
        component: SetNewPassword,
        meta: {title: 'Reset Password'}
    },
    {
        path: '*',
        component: NotFound,
        meta: {title: '404'}
    }
]
export default ojRoutes